<?php

namespace app\common\model;

use think\Model;
use app\common\model\Base;

class SystemMenu extends Base {

    public function getStatusTextAttr($value, $data) {
        
        $status = [0 => '隐藏', 1 => '显示'];
 
         return isset($status[$data['status']]) ? $status[$data['status']] : '';
    }   

}
